package com.twu.biblioteca;


public class Book {

    String isbn, title, author, publisher;


    Book(String isbn, String title, String author, String publisher){
        this.isbn = isbn;
        this.title= title;
        this.author = author;
        this.publisher = publisher;
      }

    public boolean CheckIdenticalBooks(Book tempBook){
        boolean areIdentical  = false;

//        if(tempBook.isbn.equalsIgnoreCase(isbn))
            if(tempBook.author.equalsIgnoreCase(author))
                if(tempBook.publisher.equalsIgnoreCase(publisher))
                    if(tempBook.title.equalsIgnoreCase(title))
                            areIdentical = true;

            return  areIdentical;
    }

}
